<template>
	<uni-tree :trees="types" @addOk="add()">
		
	</uni-tree>
</template>

<script>
	import UniTree from '@/components/uni-tree/uni-tree.vue'
	export default {
		components: {
			UniTree
		},
		data() {
			return {
				types:[
					{
						id:1,
						title:'资产',
						children:[{
							id:11,
							title:'流动资产',
							children:[{
								id:111,
								title:'活期',
							},{
								id:112,
								title:'定期',
							}
							]
						},{
							id:12,
							title:'固定资产',
						}],
					},
					{
						id:-1,
						title:'负责',
						children:[],
					},
				]
			}
		},
		methods: {
			add() {
				console.log("qq")
			}
		}
	}
</script>

<style>

</style>
